import { Properties, CommonProps } from '../common/CommonProps';
import { IGaeaSetting } from '../../defines/application';

export class Props extends CommonProps {
  public editSetting: IGaeaSetting = {
    key: 'gaea-dept-select',
    name: 'DeptSelect',
    type: 'text',
    grouping: 'optionType',
    editors: [
      ...Properties,
      {
        field: 'placeholder',
        text: 'Placeholder',
        type: 'string'
      },
      {
        field: 'multiple',
        type: 'radio',
        text: 'Options',
        data: [{ text: 'OneDept', value: false }]
      }
    ]
  };
  public multiple = false; // 是否多选
  public placeholder = '请选择'; // 是否多选
}

export class State {
  // public selectedValue: any = null;
  // public deptOptionData: any[] = [];
  modalStatus = false;
  showDeptText = '';
  receiveData = [];
}
